package com.biz.user.entity.po;

import lombok.*;
import org.springframework.data.annotation.*;
import org.springframework.data.elasticsearch.annotations.*;

import java.util.*;

/**
 * @Description
 * @Author liuxi
 * @Date 2024/6/10
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "user_index", createIndex = false)
public class UserEsPo {

    @Field(type = FieldType.Long)
    @Id
    private Long id;

    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String name;

    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String context;

    @Field(type = FieldType.Keyword)
    private String createUser;

    @Field(type = FieldType.Date, index = false)
    private Date createTime;
}
